package com.zhuss.food.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.food.order.SearchOrderBo;
import com.zhuss.bean.vo.food.order.DetailOrderVo;
import com.zhuss.bean.vo.food.order.ListOrderVo;
import com.zhuss.food.db.dao.gen.OrderMapper;
import com.zhuss.food.db.entity.Order;

@Mapper
public interface OrderDao extends OrderMapper {
	
	Long selectIdByNo(@Param("orderNo") String orderNo);
	
	void create(Order order);

	List<Order> listOrder(SearchOrderBo bo);
	
	List<ListOrderVo> list(SearchOrderBo bo);

	Integer countList(SearchOrderBo bo);
	
	DetailOrderVo detail(@Param("orderId") Long orderId);
    
}